<?php include 'application/views/header.php' ?>

<!-- PAGE PRODUCT -->
<div id="page-product" class="page-content">
    <!-- content categories -->
    <?php $proCategoryOptions = get_product_categories_option() ?>
    <div class="product-left">
        <ul class="categories">
            <li class="noborder">Xem:</li>
            <a href="<?php echo base_url() ?>san-pham.html"><li class="<?php echo (empty($CateId)  ? 'active' : '')  ?>">Tất cả</li></a>
            <?php foreach($proCategoryOptions as $key => $categoryOption): ?>
            <a href="<?php echo base_url() ?>san-pham/<?php echo $key  ?>"><li class="<?php echo ($CateId == $key  ? 'active' : '')  ?>"><?php echo $categoryOption ?></li></a>
            <?php endforeach; ?>
        </ul>
    </div>
    
    <!-- content product -->
    <div class="product-right">
        <h1 class="header">Sản phẩm</h1>
        
        <?php foreach($Products as $Product): ?>
        <div class="product-box">
			<img class="product-icon" src="<?php echo base_url() ?>public/images/products/<?php echo $Product['Icon'] ?>" alt="PC Tools&lt;sup&gt;™&lt;/sup&gt; Internet Security">
			<p class="product-description">
                <a href="<?php echo base_url() ?>san-pham/chi-tiet/<?php echo $Product['ProductCategoryId'] ?>/<?php echo $Product['ProductId'] ?>">
                    <strong class="product-title"><?php echo $Product['ProductName'] ?></strong>
                </a> 
                <br/>
                <?php echo $Product['ProductShortDescription'] ?>
			</p>
			<div class="product-actions">
				<a class="action" href="<?php echo base_url() ?>san-pham/download/<?php echo $Product['ProductId'] ?>">
                    <img src="<?php echo base_url() ?>public/images/icon_download-trial.png">Tải về Bản dùng thử</a>
				<a class="action last" href="<?php echo base_url() ?>mua-hang/<?php echo $Product['ProductId'] ?>">
                    <img src="<?php echo base_url() ?>public/images/icon_buy.png">Mua Ngay! - $<?php echo $Product['Price'] ?> USD
                </a>
				<br/>Đăng ký 1 năm cho tối đa 3 máy tính				</div>
		</div>
        <?php endforeach; ?>
    </div>
    
    
    
    <div class="clr"></div>
</div>

<?php include 'application/views/footer.php' ?>